package com.yzt.message.widget.chatinput.utils;

/**
 * desc   : String.setSpan异常判断
 */
public class TextSpanUtils {

    public static boolean isCanSetSpan(int startIndex, int endIndex) {
        if (startIndex == -1 || endIndex == -1) {
            return false;
        }
        return startIndex != endIndex;
    }
}
